﻿/**** Twin HexColor Module**@author Richard Rodney*@version 0.1 */package railk.as3.motion.modules {	import railk.as3.motion.utils.Prop;	public class HexColorModule {		static public function update( target:Object, props:Prop, ratio:Number ):Prop {			target = props.current = mix( props.start, props.end, ratio);			return props;		}				static private function mix(b:uint,e:uint,r:Number):uint {			var q:Number=1-r;			return  (((b>>24)&0xFF)*q+((e>>24)&0xFF)*r)<<24|(((b>>16)&0xFF)*q+((e>>16)&0xFF)*r)<<16|(((b>>8)&0xFF)*q+((e>>8)&0xFF)*r)<<8|(b&0xFF)*q+(e&0xFF)*r;		}	}}